<template>
  <div>
    <ul class="service">
      <li>
        <router-link :to="{name:'wait'}">
          <div>
            <img src="../../../static/images/help/service.png" alt="">
          </div>
          <p>在线客服</p>
        </router-link>
      </li>
      <li>
        <a href="tel:400-860-2786">
          <div>
            <img src="../../../static/images/help/phone.png" alt="">
          </div>
          <p>电话咨询</p>
        </a>
      </li>
    </ul>
    <p class="time">咨询时间：9:00~21:00</p>
    <ul class="question">
      <li>
        <a href="javascript:;">
          <i></i><p>常见问题</p>
        </a>
      </li>
      <li v-for="(v,k) in questionList" :key="k">
        <router-link :to="{name:'question',query:{k:k}}">
          <i></i><p>{{v}}</p>
        </router-link>
      </li>
    </ul>
  </div>
</template>

<script>
  export default {
    name: "help",
    data(){
      return {
        questionList:[
          '如何查询拍品？',
          '找不到订单？',
          '支付失败怎么办？',
          '退款几天可以到账？'
        ]
      }
    }
  }
</script>

<style scoped>
  .service{
    display: flex;
    padding-top: 1.3rem;
    padding-bottom: 1.25rem;
    position: relative;
  }
  .service li{
    width: 50%;
  }
  .service li div{
    width: 3.15rem;
    height: 3.15rem;
    margin: 0 auto;
  }
  .service li img{
    width: 100%;
  }
  .service li p{
    color: #333333;
    font-size: 0.7rem;
    line-height: 0.7rem;
    margin-top: 0.75rem;
    text-align: center;
  }
  .service:before{
    content: "";
    width: 1px;
    height: 4rem;
    background: #EEEEEE;
    position: absolute;
    left: 50%;
    top: 1.6rem;
    transform: translateX(-50%);
  }
  .time{
    height: 1.45rem;
    line-height: 1.45rem;
    background: #eeeeee;
    color: #666666;
    font-size: 0.6rem;
    text-align: center;
  }
  .question{
    padding: 0 0.65rem;
  }
  .question li a{
    height: 2.35rem;
    line-height: 2.35rem;
    border-bottom: 1px solid #EEEEEE;
    display: flex;
    align-items: center;
  }
  .question li i{
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #999999;
    margin-right: 0.55rem;
  }
  .question li p{
    color: #666666;
    font-size: 0.7rem;
  }
  .question li:first-child i{
    background-color: #C50000;
  }
  .question li:first-child p{
    color: #333333;
    font-weight: bold;
  }
</style>
